﻿// Sheego.Service.X400
// Copyright(C) 2015 Schwab Versand GmbH
//
// This source file is subject to the Microsoft Public License(Ms-PL).
// http://www.opensource.org/licenses/ms-pl.html
// All other rights reserved.

using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using Sheego.Service.X400.Scheduler.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheego.Service.X400.Scheduler.Impl.Locator
{
    public class SchedulerInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
           container.Register(Component.For<IScheduler>().ImplementedBy<Scheduler>().LifestyleTransient());
           container.Register(Component.For<ISchedulerLogger>().ImplementedBy<SchedulerLogger>().LifestyleSingleton());
        }
    }
    
}
